Chapter 14 - Shader Objects
This chapter describes shader objects (or shaders) and the functions you can use to manipulate them. You use shaders to provide shading and other effects to the objects in a model. For example, you can use a texture shader to apply a texture to the surface of an object in a model.To use this chapter, you should already be familiar with views and lights, described in the chapters "View Objects" and "Light Objects" earlier in
this book.This chapter begins by describing shader objects and their features. Then it shows how to create and manipulate shaders. The section "Shader Objects Reference," beginning on page 14-16 provides a complete description of shader objects and the routines you can use to create and manipulate them.
Chapter Contents
- About Shader Objects
- Surface-Based Shaders
- Illumination Models
- Lambert Illumination
- Phong Illumination
- Null Illumination
- Textures
- Using Shader Objects
- Using Illumination Shaders
- Using Texture Shaders
- Creating Storage Pixmaps
- Handling uv Values Outside the Valid Range
- Shader Objects Reference
- Constants
- Boundary-Handling Methods
- Shader Objects Routines
- Managing Shaders
- Managing Shader Characteristics
- Managing Texture Shaders
- Managing Illumination Shaders
- Managing Textures
- Managing Pixmap Textures
- Summary of Shader Objects
- C Summary
- Constants
- Shader Objects Routines
- Managing Shaders
- Managing Shader Characteristics
- Managing Texture Shaders
- Managing Illumination Shaders
- Managing Textures
- Managing Pixmap Textures